package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.*;
import java.util.List;

/**
 * Manager
 *
 * @author Clevo
 * @date 2018/8/2
 */
@Entity
@Table(name = "manager")
public class Manager extends BasePojo {

    public String name;

    public String userName;

    public String password;

    public Long githubAuthid;

//    @ManyToMany
//    @JoinTable(name = "manager_role",
//            joinColumns = {@JoinColumn(name="manager_id",referencedColumnName = "id")},
//            inverseJoinColumns = {@JoinColumn(name="role_id",referencedColumnName = "id")}
//            )
//    public List<Role> roles;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getGithubAuthid() {
        return githubAuthid;
    }

    public void setGithubAuthid(Long githubAuthid) {
        this.githubAuthid = githubAuthid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

//    public List<Role> getRoles() {
//        return roles;
//    }
//
//    public void setRoles(List<Role> roles) {
//        this.roles = roles;
//    }
}
